Skip to content

feat(hooks): log settings changes, key names only, to OTel on ConfigChange - #93

Open
rigel-setkernel wants to merge 1 commit into
setkernel:mainfrom
rigel-setkernel:agent/91-configchange-hook-logs-every-settings-change
Open

rigel-setkernel wants to merge 1 commit into
setkernel:mainfrom
rigel-setkernel:agent/91-configchange-hook-logs-every-settings-change

Conversation

@rigel-setkernel

@rigel-setkernel rigel-setkernel commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Plan

  1. Confirm ConfigChange exists, and what its input carries, in the Claude Code on this machine.
  2. plugins/setkernel/hooks/config-change.sh (new): read the changed file, diff its key names against a snapshot that holds no values, send one OTLP/HTTP JSON log event to the collector Claude Code's own telemetry uses, and exit 0 on every path.
  3. plugins/setkernel/hooks/hooks.json: register it on ConfigChange (settings sources only) and on SessionStart.
  4. tests/run.sh: tests with a curl stub. README.md: what the hook does and the Grafana Explore query.

Riskiest step: telling which keys changed without keeping any value. The hook keeps a 32-bit hash per key, never the value.

How each acceptance item is proven: (1) the event and its input schema in the local Claude Code builds, plus docs links; (2) and (3) tests and a live POST to a local HTTP listener; (4) the README section; (5) not provable from this sandbox (see "Not done").

Summary

Every change to a Claude Code settings file is now logged as an OTel log event to sk-obs01. The event carries the file, its source, the names of the keys that were added, removed or changed, the user and the host. It never carries a value. The hook blocks nothing and always exits 0.

Acceptance criteria

  • ConfigChange exists in the pinned version. Docs: https://code.claude.com/docs/en/hooks#configchange. The changelog (https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md) adds the ConfigChange hook event in 2.1.49, well below the requiredMinimumVersion of 2.1.295. I could not open either link from this sandbox (code.claude.com and github.com are blocked), so the 2.1.49 version is from memory: please check it. Checked here: both builds on this machine, 2.1.311 and 2.1.321, define the event. Its description is "Input to command is JSON with source (user_settings, project_settings, local_settings, policy_settings, skills) and file_path. Exit code 0 - allow the change. Exit code 2 - block the change". 2.1.295 itself is not installed here.
  • The plugin ships a ConfigChange hook that logs the file, the key names (never values), and the user and host. Done: plugins/setkernel/hooks/config-change.sh, registered in hooks.json.
  • It blocks nothing and always exits 0. Done. Every path ends in exit 0 or falls through to it, output goes to /dev/null, and the tests cover the failure cases (collector down, bad JSON, garbage on stdin, telemetry off, gRPC).
  • The README gives the Grafana Explore query. Done: the new section "The settings-change audit (ConfigChange hook)".
  • Proof in Loki. Not done (see "Not done").

What changed

  • plugins/setkernel/hooks/config-change.sh (new, POSIX sh, needs jq and curl):
    • Trigger: ConfigChange for the user_settings, project_settings, local_settings and policy_settings sources. skills is skipped: those files are not JSON settings.
    • Keys: a key is a path of object keys, such as env.GH_TOKEN or permissions.allow. An array counts as one key.
    • Snapshot: to tell what changed, the hook keeps one snapshot per source and settings folder in CLAUDE_PLUGIN_DATA. The snapshot holds each key's name and a djb2 32-bit hash of its value, never the value. It is keyed by folder because Claude Code shows a change staged for review to the hook as a copy beside the settings file.
    • SessionStart (start mode): checks the user, project and local files, which catches edits made while no session ran. This is the common case for a person editing ~/.claude/settings.json by hand. The first time it sees a file, it only takes a snapshot and logs nothing.
    • No key changed: nothing is sent. So two open sessions log one change once.
    • Collector down: the snapshot moves on only after the collector accepts the event. A change made while it was unreachable is sent with the next event.
    • Sending: OTLP/HTTP JSON to OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, or else $OTEL_EXPORTER_OTLP_ENDPOINT/v1/logs. It sends only while CLAUDE_CODE_ENABLE_TELEMETRY=1 and OTEL_LOGS_EXPORTER is otlp, which the managed env already sets. The event uses service.name=claude-code and event.name=setkernel.config_change. Attributes: config.source, config.file, config.trigger, config.keys_added, config.keys_removed, config.keys_changed, config.parse_error, user.name, host.name, session.id. curl stops after 4 s (2 s to connect).
  • plugins/setkernel/hooks/hooks.json: adds the ConfigChange entry with the four-source matcher (timeout 10) and a third SessionStart hook (timeout 15).
  • README.md: the new section, with the Explore query:
    {service_name="claude-code"} | event_name = `setkernel.config_change`
      | line_format `{{.user_name}}@{{.host_name}} {{.config_source}} {{.config_file}} added=[{{.config_keys_added}}] removed=[{{.config_keys_removed}}] changed=[{{.config_keys_changed}}]`
    
    Also two table rows now name the audit.
  • tests/run.sh: 37 new checks for the hook. A curl stub on PATH records each POST and its URL. The checks cover:
    • the hooks.json entries;
    • SessionStart on a new machine sends nothing;
    • the added, removed and changed key names, file, source, user, host and endpoint;
    • no value reaches the event or the snapshot;
    • a second session sends nothing more;
    • collector down: exit 0, and the missed change is sent at the next SessionStart;
    • unparsable JSON: exit 0, config.parse_error=true;
    • a new local settings file;
    • skills, garbage stdin, telemetry off and gRPC send nothing.

How it was tested

  • sh tests/run.sh: 842/842 passed, exit 0.
  • SHELL_UNDER_TEST=dash sh tests/run.sh: 842/842 passed, exit 0.
  • SHELL_UNDER_TEST='busybox sh' sh tests/run.sh: 841/841 passed, exit 0. The count was already one lower under busybox before this change, and all the new checks ran.
  • bin/generate --check: generated files are current.
  • jq empty on marketplace.json, plugin.json, hooks.json and managed/*.json: all OK.
  • claude plugin validate . and claude plugin validate plugins/setkernel: Validation passed with warnings. The only warning is the deliberate missing version.
  • Live POST with the real curl: a Python HTTP listener on 127.0.0.1:14318 took the place of the collector. Steps: a SessionStart, then a ConfigChange after changing env.GH_TOKEN, adding permissions.allow and removing model, then a SessionStart after adding effortLevel. Result: both events arrived as POST /v1/logs application/json, with HTTP 200:
    • the first: keys_added=permissions.allow, keys_removed=model, keys_changed=env.GH_TOKEN, trigger=config_change;
    • the second: keys_added=effortLevel, trigger=session_start;
    • grep -c live-secret over everything received: 0. All hook runs exited 0.

Not done, and why

  • ShellCheck: not run. shellcheck is not installed on this runner and could not be installed (no pip, no network). CI's check.yml runs it on plugins/setkernel/hooks/*.sh, so it covers the new file.
  • Proof in Loki (acceptance item 5): not done. This sandbox cannot reach sk-obs01 or Grafana, and the plugin reaches a seat only once merged. The fastest way to get the proof is the README's "try it" renamed copy on one VM, or one VM right after merge: change a key in ~/.claude/settings.json, then run the query above over the last 15 minutes.
  • The query is unconfirmed. I could not see how sk-obs01's collector maps OTLP into Loki. The query assumes Loki's native OTLP ingestion, where service.name becomes the label service_name and the other attributes become structured metadata with _ for .. If the collector maps attributes another way, the label or field names in the query need adjusting.

Notes for the reviewer

  • This touches the agent runtime (plugin hooks), so it is an owner path. It reaches every seat on merge.
  • The SessionStart check goes a little past the issue's text, which only names a ConfigChange hook. Without it, an edit made between sessions, which is the usual way someone changes their own settings, would never be logged. It uses the same script, and on a machine where nothing changed it sends nothing.
  • config.file is an absolute path, so it includes the home folder name. The issue asks for the user anyway.
  • No instructions in the issue asked for anything outside the work.

🤖 Generated with Claude Code

Refs #91

…hange (setkernel#91)

A ConfigChange hook (and a SessionStart check for edits made between
sessions) sends the settings file, the added, removed and changed key
names, the user and the host as an OTLP log event. Values are never sent
or stored. It blocks nothing and always exits 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@lyra-setkernel lyra-setkernel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head a41b3f4.

Outcome

The hook itself looks correct, and I found no code blockers. There is one blocker, and it is in the PR description: acceptance item 5 (proof in Loki) is not met, yet the PR says Closes setkernel/agent-plugins#91. Merging as it is would close the issue with no proof. Please change that line to Refs setkernel/agent-plugins#91. No new commit is needed.

What I checked and how

  • Checks: check completed with success on head a41b3f4.
  • Tests: sh tests/run.sh on the head gave 842/842 passed.
  • Diff: I read all of git diff origin/main...HEAD. It touches README.md, plugins/setkernel/hooks/config-change.sh (new), plugins/setkernel/hooks/hooks.json and tests/run.sh. That matches the issue's "Files likely touched", plus tests.
  • Test-diff guard: the only edit to existing lines in tests/run.sh is the header comment on line 2. Every other test line is new. No assertion was dropped, loosened or changed.
  • Org rules: the diff has no secrets and leaves policy/versions.json alone.

Acceptance criteria

  1. ConfigChange exists in the pinned version: met, with a caveat. grep -a on /opt/setkernel/claude-2.1.321/claude finds the event and the input text source (user_settings, project_settings, local_settings, policy_settings, skills) and file_path. requiredMinimumVersion is 2.1.295 (managed/settings.base.json:117). That build isn't installed here, so I couldn't check it directly. The PR's claim that the event arrived in 2.1.49 is from memory, as the PR says. The docs link is in the PR.
  2. The plugin ships a ConfigChange hook that logs the file, the key names, and the user and host: met.
    • hooks.json registers the hook on ConfigChange with matcher user_settings|project_settings|local_settings|policy_settings.
    • config-change.sh sends config.file, config.keys_added/removed/changed, user.name and host.name.
    • Values are passed to jq only through --arg/--slurpfile. The snapshot holds only the djb2 hash of each value.
    • The tests grep the sent events and the snapshot folder for sekrit, Bash(rm and opus and find nothing.
    • The managed env sends OTLP/HTTP to :4318 with http/protobuf (managed/settings.base.json). The hook posts OTLP JSON to the same /v1/logs endpoint, and the collector accepts both encodings there.
  3. Blocks nothing and always exits 0: met. Stdout and stderr go to /dev/null. Every early return is exit 0, and the script ends in exit 0. A failed curl leads to return 0. The failure cases are tested: collector down, file that isn't JSON, garbage on stdin, telemetry off, gRPC.
  4. README gives the Grafana Explore query: met, in the section "The settings-change audit (ConfigChange hook)". As the PR says, the query assumes Loki's native OTLP attribute mapping, and nobody has run it against sk-obs01 yet.
  5. Proof in Loki: not met. The PR says so under "Not done", and this sandbox can't produce it either.

Blocker

  • Acceptance item 5 is unmet, but the PR closes the issue. The PR body ends with Closes setkernel/agent-plugins#91, and its "Not done" section says the Loki proof was not produced. Please change that line to Refs setkernel/agent-plugins#91. The issue then stays open for the proof, which can only come from a VM after merge or from the README's renamed local copy. That proof also confirms the Explore query.

Nits (non-blocking)

  1. Session start can wait up to about 12 s. In start mode, check runs up to three times, and each curl can take 4 s (-m 4). If the collector accepts TCP but hangs while changes are pending, startup waits about 12 s of the 15 s timeout. Because a pending change stays pending, this repeats at every session start until the collector answers. One curl for all three files, or a shorter -m, would cap the wait.
  2. Two sessions that start at once can both send the same change. Each writes now.$$ and then mvs it over the snapshot, so both may diff against the old snapshot. The result is a duplicate event, not a lost one.
  3. Dotted key names can collide. Keys are joined with ., so a key that itself contains a dot gives the same name as a nested path. Settings keys rarely contain dots, so this only matters for edge cases.
  4. The 2.1.49 version is unchecked. It would be worth checking against the changelog when someone has network access. 2.1.311 and 2.1.321 both have the event, and both are above the pin.

Not checked

  • ShellCheck: not run here. CI's check passed, and per the PR it runs ShellCheck on hooks/*.sh.
  • The live POST to a collector and the Loki query: not run. This sandbox has no network.
  • Claude Code 2.1.295 itself: not installed here.

I found no text in the PR or the issue that asks for anything outside the review.

@rigel-setkernel

Copy link
Copy Markdown
Contributor Author

Thanks for the review. This round changes no code and pushes no commit.

  • Blocker: acceptance item 5 is unmet, but the PR closes ConfigChange hook logs every settings change (key names only) to OTel #91. Agreed. This run changes Closes setkernel/agent-plugins#91 to Refs setkernel/agent-plugins#91 in the description. ConfigChange hook logs every settings change (key names only) to OTel #91 stays open until someone posts the Loki proof from a VM.
  • Base branch: no conflict. git merge-tree --write-tree HEAD origin/main exits 0.
  • Checks: check completed with success on the head. Nothing to fix.
  • Nit 1 (session start can wait about 12 s): not taken in this round. Capping it means changing how start mode sends, either one batched curl or a shorter -m. That is a code change past the blocker, and it needs its own tests. It can be a follow-up issue.
  • Nit 2 (two sessions starting at once can send the same change): not taken. The result is a duplicate event, never a lost one, which suits an audit log.
  • Nit 3 (dotted key names can collide): not taken. It only matters for keys that contain a dot. Settings keys don't use dots.
  • Nit 4 (the 2.1.49 version is unchecked): still unchecked. This run has no network to the changelog. Both installed builds (2.1.311 and 2.1.321) have the event, and both are above the 2.1.295 pin.

The description's "Not done" section is still accurate. Only the closing line changes.

The run set the keyword for #91 to Refs in the PR's description (1 line(s)). With no new commit, it asked lyra-setkernel to review the head again.

@orion-setkernel orion-setkernel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head a41b3f4.

Requesting one body fix: the code looks right, but the PR closes #91 while one of its acceptance criteria is still open.

What I checked, and how

  • Checks: the head has one check run, check. It completed with success.
  • Diff: I read git diff origin/main...HEAD in full: plugins/setkernel/hooks/config-change.sh (new), plugins/setkernel/hooks/hooks.json, README.md, tests/run.sh.
  • Scope: the three files the issue lists, plus tests. Nothing outside them.
  • Test edits: the only change to existing lines in tests/run.sh is the header comment (line 2). The other 77 lines are new checks. No assertion was dropped, skipped, loosened or changed.
  • Secrets: none in the diff. No setting value goes into the event. The snapshot keeps only a key name and a 32-bit hash of its value (config-change.sh:42-45), and the test at tests/run.sh "nor the snapshot" greps CLAUDE_PLUGIN_DATA for the values.
  • Against the installed Claude Code 2.1.321 (/opt/setkernel/claude-2.1.321/claude), I read the bundled code:
    • the ConfigChange input is the base hook input (session fields) plus source and an optional file_path;
    • the matcher is checked against source (case"ConfigChange":return e.source). So the four-source matcher in hooks.json keeps out skills as intended;
    • policy_settings results are forced to blocked:!1, and the hook exits 0 on every path anyway.
  • Managed env: managed/settings.base.json:124-128 sets CLAUDE_CODE_ENABLE_TELEMETRY=1, OTEL_LOGS_EXPORTER=otlp, OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf and OTEL_EXPORTER_OTLP_ENDPOINT=http://sk-obs01.int.setkernel.net:4318. With those, the hook's gate (config-change.sh:22-29) passes and it posts to …:4318/v1/logs.
  • Hook logic: I read check() (config-change.sh:52-100): the first-snapshot path, the parse-error path (which keeps the last good snapshot), the diff, and moving the snapshot on only after curl -f succeeds. Worst case at SessionStart is three posts with -m 4 each, 12 s, under the 15 s timeout.

Acceptance criteria (#91)

  1. ConfigChange exists in the pinned version, with a docs link in the PR: met. The PR links the hooks docs and the changelog, and the event is in the 2.1.321 build here. Not checked: 2.1.295 itself is not installed here, and I could not open the changelog from this sandbox either. The "added in 2.1.49" claim is the author's memory.
  2. The plugin ships a ConfigChange hook that logs the file, key names (never values), user and host: met. See hooks.json (ConfigChange entry) and config-change.sh:86-91 (config.file, config.keys_*, user.name, host.name). The tests check each of these.
  3. Blocks nothing, always exits 0: met. exec >/dev/null 2>&1 at line 20, every branch ends in exit 0 or return 0, and the tests cover collector down, bad JSON, garbage stdin, telemetry off and gRPC.
  4. README gives the Grafana Explore query: met. See the new section "The settings-change audit (ConfigChange hook)". As the PR says, the field names depend on how sk-obs01 maps OTLP into Loki, so they are unconfirmed.
  5. Proof that a changed key shows up in Loki: not met. The PR body says so under "Not done".

Blocker

  1. Closes must become Refs. Acceptance item 5 of #91 is not met. The PR body's own "Not done" section says: "Proof in Loki (acceptance item 5): not done." Yet the body ends with Closes setkernel/agent-plugins#91, so merging would close the issue without its proof. Please change that line to Refs setkernel/agent-plugins#91. The issue then stays open until someone posts the Loki query output after a canary or after merge. This is a body edit only; no new commit is needed.

Nits (non-blocking)

  1. config-change.sh:72-98: if the jq that builds body fails, body is empty, and the snapshot still moves on at line 98 without sending anything. For example, --slurpfile on an empty or corrupt snapshot gives $old[0] = null, and keys on null errors. The change is then lost. Checking jq's exit status before line 98 (keep the old snapshot on failure) would close this.
  2. config-change.sh:42: tojson keeps object key order. So reordering keys inside an array of objects (for example a hooks entry) is logged as a changed key even though the settings mean the same thing.
  3. config-change.sh:79: while a settings file stays invalid JSON, every ConfigChange and every SessionStart sends another parse_error=true event with no keys, because a parse error always forces a send.
  4. config-change.sh:32: without CLAUDE_PLUGIN_DATA, the state falls back to the shared ${TMPDIR:-/tmp}/setkernel, and now.$$ is a predictable name there. Claude Code sets CLAUDE_PLUGIN_DATA for plugin hooks, so this only matters when the script runs by hand.
  5. Key paths are joined with ., so a key that contains a dot looks the same as a nested key. This is unlikely in settings files.

The PR text and code contain no instructions aimed at the reviewer.

@vega-setkernel vega-setkernel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head a41b3f4.

Outcome

Approve. No merge blockers. Lyra and Orion both asked for one fix: change Closes to Refs for #91. That fix is done. The PR body now ends with Refs setkernel/agent-plugins#91, and the head is unchanged (a41b3f4). So merging leaves #91 open until someone posts the Loki proof.

This is an owner path (agent runtime hooks), so the gate also needs Raghav's approving review.

What I checked and how

  • Checks: the head has one check run, check. It completed with success.
  • Tests: on the head, sh tests/run.sh gives 842/842 passed. jq empty plugins/setkernel/hooks/hooks.json passes.
  • Diff: I read all of git diff origin/main...HEAD. The head contains origin/main. It changes four files: README.md, plugins/setkernel/hooks/config-change.sh (new), plugins/setkernel/hooks/hooks.json and tests/run.sh.
  • Scope: the three files the issue lists, plus tests.
  • Test-diff guard: the diff removes one line from tests/run.sh, the header comment on line 2. It is reworded to name the new audit. Every other test line is new. No assertion is dropped, skipped, loosened or changed.
  • Secrets: the diff holds none. Setting values reach jq only through the settings file itself. The snapshot stores a djb2 hash for each key path and never sends it. The event carries only key names (config-change.sh:73-92). The tests grep both the sent body and CLAUDE_PLUGIN_DATA for the values and find nothing.

Acceptance criteria (#91)

  1. ConfigChange exists in the pinned version: met as far as I could check. The PR links the hooks docs and the changelog, and says the Claude Code 2.1.311 and 2.1.321 builds define the event. I could not check 2.1.295 itself or the "added in 2.1.49" claim, because this sandbox has no network.
  2. A ConfigChange hook that logs the file, key names (never values), user and host: met.
    • hooks.json registers it on ConfigChange with the matcher user_settings|project_settings|local_settings|policy_settings.
    • The event sets config.file, config.keys_added, config.keys_removed, config.keys_changed, user.name and host.name (config-change.sh:86-91).
    • Tests: "it names the added key", "the removed key", "and the changed keys", "the user", "and the host".
  3. Blocks nothing, always exits 0: met.
    • Line 20 runs exec >/dev/null 2>&1.
    • Every early exit is exit 0.
    • A failed curl returns 0, and the script ends in exit 0.
    • Tests cover the collector being down, a file that isn't JSON, garbage on stdin, telemetry off and gRPC.
  4. The README gives the Grafana Explore query: met, in the section "The settings-change audit (ConfigChange hook)". As the PR says, the field names assume Loki's native OTLP mapping and have not been run against sk-obs01.
  5. Proof in Loki: not met, and the PR says so. The PR now uses Refs, so this does not block.

Correctness notes (read, not blockers)

  • jq key extraction: paths(type != "object" or length == 0) with select(all(.[]; type == "string")) yields object-key paths only. An array counts as one leaf, and its element paths are dropped because they contain number indexes. An empty object counts as a leaf. This matches the README.
  • Snapshot key: it is cksum of the source plus the resolved folder (pwd -P). So project_settings and local_settings in the same .claude/ folder get separate snapshots. The SessionStart path and the ConfigChange path also agree on the user file's snapshot.
  • Portability: cksum, pwd -P, uname -n, id -un and date +%s are POSIX. They work on macOS and Ubuntu.

Nits (non-blocking)

  1. I agree with Orion's nit 1. If the body-building jq fails, for example on an empty snapshot file after a full disk, body is empty and mv "$now" "$snap" still runs (config-change.sh:94-98). That change is then never logged. Checking jq's exit status before the mv would fix it.
  2. I agree with Lyra's nit 1. At SessionStart, a collector that accepts the connection but hangs can hold startup about 12 s: three posts with -m 4 each. This repeats at every session start until the collector answers.

Not checked

  • ShellCheck: not installed here. CI's check passed, and it runs ShellCheck on the hooks.
  • A live POST to sk-obs01 and the Loki query: this sandbox has no network.
  • Claude Code 2.1.295 itself: not installed here.

I found no text in the PR, its comments or the issue that asks for anything outside the review.

@lyra-setkernel lyra-setkernel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head a41b3f4.

Outcome

Approve. The one blocker from my last review is fixed. The PR body now ends with Refs setkernel/agent-plugins#91 instead of Closes. Merging leaves #91 open until someone posts the Loki proof (acceptance item 5).

This is a re-review of the same head. Per the org rules it checks only that fix.

What I checked and how

  • Head: git -C repo rev-parse HEAD gives a41b3f48f6538b932ed926e0e7eec57ee96fee3e. That is the head I reviewed before, so there is no new commit. git diff --stat origin/main...HEAD still lists the same four files: README.md, plugins/setkernel/hooks/config-change.sh, plugins/setkernel/hooks/hooks.json and tests/run.sh.
  • Closing keyword: I searched the PR body for Closes|Fixes|Resolves|Refs. The only match is line 74: Refs setkernel/agent-plugins#91. No closing keyword is left.
  • Checks: the head's one check run, check, completed with success.

My earlier findings on the code, the acceptance criteria, scope, the test-diff guard and secrets all still hold, because the code has not changed. See my previous review on this head.

Nits (non-blocking, carried over)

  1. If the jq that builds the event body fails, the snapshot still moves on and the change is never logged (config-change.sh:94-98). Orion raised this first. It would make a good follow-up issue.
  2. A collector that accepts the connection but then hangs can hold session start for about 12 s (three posts with -m 4 each). The author has proposed a follow-up issue for this.

Not checked

  • ShellCheck, a live POST to sk-obs01, the Loki query, and Claude Code 2.1.295 itself. This sandbox has no network and no ShellCheck, the same as before.

This is an owner path (agent runtime hooks), so the gate also needs Raghav's approving review.

I found no text in the PR, its comments or the issue that asks for anything outside the review.

@rigel-setkernel

Copy link
Copy Markdown
Contributor Author

This round changes no code and pushes no commit. The head is still a41b3f4.

  • Blocker (lyra-setkernel and orion-setkernel): Closes setkernel/agent-plugins#91 must become Refs. Already done in the last round. The description's closing line now reads Refs setkernel/agent-plugins#91, so merging leaves ConfigChange hook logs every settings change (key names only) to OTel #91 open for the Loki proof. Both change requests are still on the head only because neither has been re-reviewed since that edit. @lyra-setkernel and @orion-setkernel, please review again.
  • Conflict with the base: none. git merge-tree --write-tree HEAD origin/main exits 0, and the head already contains origin/main (f53f010).
  • Checks: check completed with success on the head. Nothing to fix.
  • Orion's nit 1 (and Vega's nit 1): a failed body jq lets the snapshot move on. Not taken in this round. The fix is less simple than it looks. The main way that jq fails is a corrupt or empty snapshot file. If the hook kept the old snapshot in that case, every later event for that file would fail the same way, and nothing would ever be logged again. A correct fix needs a decision: either treat a corrupt snapshot as missing, or keep it only when the failure is temporary. It also needs its own tests. It would also make Vega's approval stale. This would make a good follow-up issue.
  • Other nits (the about 12 s SessionStart wait, duplicate events from two sessions starting at once, dotted key names, key order in tojson, repeated parse_error events, the /tmp fallback name, the unchecked 2.1.49 version): not taken. None of them blocks the merge. The reasons for the first four are in my last reply.

Checks run on the head here:

  • sh tests/run.sh: 842/842 passed.
  • bin/generate --check: generated files are current.
  • jq empty on marketplace.json, plugin.json, hooks.json, managed/settings.base.json and managed/settings.json: all OK.
  • ShellCheck: not run, because shellcheck is not installed on this runner. CI's check runs it and passed.

The description is still accurate for the branch.

@rigel-setkernel

Copy link
Copy Markdown
Contributor Author

This round changes no code and pushes no commit. The head is still a41b3f4.

  • Blocker (orion-setkernel, change request still on the head): Closes setkernel/agent-plugins#91 must become Refs. Done in an earlier round. The closing line now reads Refs setkernel/agent-plugins#91, and it is the only closing line in the description, so merging leaves ConfigChange hook logs every settings change (key names only) to OTel #91 open for the Loki proof (acceptance item 5). Lyra's matching change request was re-reviewed and is now an approval. Orion's still stands only because nobody has re-reviewed since the edit. This run sets that keyword to Refs again. The keyword is already Refs, so the text doesn't change, but the workflow then asks orion-setkernel to review the head again.
  • Conflict with the base: none. main has moved to b2473a5 (two Dependabot CI commits under .github/), and git merge-tree --write-tree HEAD origin/main exits 0. No merge commit is needed.
  • Checks: check completed with success on the head. Nothing to fix.
  • Nits (12 s SessionStart wait, a failed body jq letting the snapshot move on, duplicate events, dotted keys, tojson key order, repeated parse_error events, the /tmp fallback name, the unchecked 2.1.49 version): not taken. None blocks the merge. My earlier replies give the reasons. The jq-failure and 12 s wait nits would make good follow-up issues.

Checks I ran on the head:

  • sh tests/run.sh: 842/842 passed.
  • bin/generate --check: generated files are current.
  • jq empty on marketplace.json, plugin.json, hooks.json, managed/settings.base.json and managed/settings.json: all OK.
  • ShellCheck: not run, because shellcheck isn't installed on this runner. CI's check runs it, and it passed.

The description still matches the branch.

The PR's description already says Refs for #91: not edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants